<%= H.partial(:header, { :title => title, :section => section })  %>

<div class='
  post_content 
  <% if(section == 'projects') %>
    project_<%= title.downcase.gsub(" ", "_") %>
  <% end %>
'>
  <header>

    <%# Date comes before for note posts %>
    <% if(section == 'notes') %>
    <time><%= H.datefmt(date) %></time>
    <% end  %>

    <div class='hwrap'>
      <h2><%= title %></h2>
      <% if(defined?(description)) %><span class='description'><%= description %></span><% end %>
    </div>
  </header>

  <% if(defined?(poster)) %>
    <img class='poster-img' src="<%= poster %>" />
  <% end  %>

  <%= content %>

  <% if(defined?(footnotes)) %>
    <div class='footnotes'>
      <ol class='footnotes-list'>
        <% footnotes.each do |f| %>
          <li><span><%= f %></span></li>
        <% end %>
      </ol>
    </div>
  <% end %>
</div>

<%= H.partial(:footer) %>
